<template>
  <div class="detail">
    <swiper  class="detail-swipem">
      <swiper-item class="swiper-item" v-for="(item, index) in topImages" :key="index">
        <img :src="item" alt="" class="swiper-item-img"/>
      </swiper-item>
    </swiper>
  </div>
</template>

<script>
// 导入轮播图组件
import { Swiper, SwiperItem } from "components/common/swiper";
export default {
  name: "DetailSwipem",
  components: {
    Swiper,
    SwiperItem,
  },
  props: {
    topImages: {
      type: Array,
      default() {
        return [];
      },
    },
  },

  data() {
    return {};
  },
};
</script>

<style scoped>
.detail{
  width: 100%;
}
.detail .swiper-item-img{
  width: 100%;
  height: 350px; 
}
</style>